﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using System.Data.SqlClient;
using DAO;

namespace BUS
{
   public class ChiTietPhieuDatPhongBUS
    {
        public List<ChiTietPhieuDatPhongDTO> DanhSachChiTietPhieuDatPhong()
        {
            ChiTietPhieuDatPhongDAO ct = new ChiTietPhieuDatPhongDAO();
            return ct.DanhSachChiTietPhieuDatPhong();
        }
        public Boolean ThemChiTietPhieuDatPhong(ChiTietPhieuDatPhongDTO ct)
        {
            ChiTietPhieuDatPhongDAO kq = new ChiTietPhieuDatPhongDAO();
            return kq.ThemChiTietPhieuDatPhong(ct);
        }
        public Boolean XoaChiTietPhieuDatPhong(ChiTietPhieuDatPhongDTO ct)
        {
            ChiTietPhieuDatPhongDAO kq = new ChiTietPhieuDatPhongDAO();
            return kq.XoaChiTietPhieuDatPhong(ct);
        }
        public Boolean CapNhatChiTietPhieuDatPhong(ChiTietPhieuDatPhongDTO ct)
        {
            ChiTietPhieuDatPhongDAO kq = new ChiTietPhieuDatPhongDAO();
            return kq.CapNhatChiTietPhieuDatPhong(ct);
            
        }
    }
}
